var app = angular.module('mycon', ['ionic'])
app.config(function($stateProvider, $urlRouterProvider) {
	$urlRouterProvider.otherwise('/tabs')
	$stateProvider.state('tabs', {
		url: '/tabs',
		templateUrl: 'views/tabs/tabs.html',
//		controller: 'tabsCtrl'
	}).state('tabs.home', {
		url: '/home',
		views: {
			'tabs-home': {
				templateUrl: 'views/home/home.html',
				controller: 'homeCtrl'
			}
		}
	}).state('tabs.jiukuaijiu', {
		url: '/jiukuaijiu',
		views: {
			'tabs-jiukuaijiu': {
				templateUrl: 'views/jiukuaijiu/jiukuaijiu.html',
				controller: 'jiukuaijiuCtrl'
			}
		}
	}).state('tabs.fenlei', {
		url: '/fenlei',
		views: {
			'tabs-fenlei': {
				templateUrl: 'views/fenlei/fenlei.html',
				controller: 'fenleiCtrl'
			}
		}
	}).state('user',{
		url:'/my',
		templateUrl:'views/my/my.html',
		controller: 'myCtrl'
	}).state('jiucontent',{
		url:'/jiucontent/:message/:new/:old/:count/:img',
		templateUrl:'views/jiucontent/jiucontent.html',
		controller: 'jiucontentCtrl'
	}).state('fenleicontent',{
		url:'/fenleicontent/:message',
		templateUrl:'views/fenleicontent/fenleicontent.html',
		controller: 'fenleicontentCtrl'
	}).state('fenleisan',{
		url:'/fenleisan/:message',
		templateUrl:'views/fenleisan/fenleisan.html',
		controller: 'fenleisanCtrl'
	})

})
app.filter('num',function  () {
	return function  (val) {
		return '￥' + val
		
	}
	
})

